package com.cloudlead.commonData.entity;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.common.persistence.UpdateCheck;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * EBaseFleetCharge is a Querydsl bean type
 */
@Label("费用代码")
public class EBaseFleetCharge extends AbstractIdEntity<String> {

    private static final long serialVersionUID =18061710900386L;    
    @Size(max=24)
    @Label("baseCompanyId")
    private String baseCompanyId;

    @Size(max=255)
    @Label("code")
    private String code;

    @Size(max=65535)
    @Label("commet")
    private String commet;

    @Size(max=255)
    @Label("costName")
    private String costName;

    @Size(max=10)
    @Label("flag")
    private String flag;

    @Size(max=24)
    @Label("id")
    @NotNull(groups={UpdateCheck.class})
    private String id;

    public String getBaseCompanyId() {
        return baseCompanyId;
    }

    public void setBaseCompanyId(String baseCompanyId) {
        this.baseCompanyId = baseCompanyId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCommet() {
        return commet;
    }

    public void setCommet(String commet) {
        this.commet = commet;
    }

    public String getCostName() {
        return costName;
    }

    public void setCostName(String costName) {
        this.costName = costName;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String toString() {
         return String.format("EBaseFleetCharge { baseCompanyId : %s,code : %s,commet : %s,costName : %s,flag : %s,id : %s }",baseCompanyId,code,commet,costName,flag,id);
    }

}

